from flask import Flask

# 创建app
app = Flask(__name__)


# 测试页面逻辑代码
@app.route('/')
def test():
    return 'this is test'


# 新闻页面逻辑代码
@app.route('/news')
def news():
    return '实时大新闻'


if __name__ == "__main__":
    app.run(debug=True)
